Nginx package rpm, nginxrpmInstall rpmbuild, generate a directory, and write a spec file with your own spec file. Due to the company's needs, nginx needs to add lua and other dependent packages, and then packages the rpm through the compilation
Case 1: Building an Nginx serverCase 2: User authenticationCase 3: Domain-based virtual hostCase 4:SSL Virtual Host1 Case 1: Building Nginx Server1.1 QuestionsInstall the Nginx service on the host with IP address 192.168.4.5 and the Nginx server,
Install rpmbuild, generate a directory, and write a spec file with your own spec file. Due to the company's needs, nginx needs to add Lua and other dependent packages, and then packages the RPM through the compilation process. The red part is the
Resources to use:
Nginx Primary server One, Nginx standby server, use keepalived for downtime switching.
Tomcat server two, by Nginx reverse proxy and load balancing, here can build server cluster.
Redis server, used for session separation and
(3) deployment of the Linux environment (Centos + Nginx + Tomcat + Mysql)-deployment of the Nginx Environment
In my local testing practice, the following is a complete operating document for Centos + Nginx + Tomcat + Mysql on Linux. The record is
Article turned from: https://typecodes.com/web/centos7compilenginx.html
If compile error view: https://typecodes.com/web/solvenginxcompileerror.html
1 Relying on library configuration, compiling and installing Nginx1.9.0
Create a user named Nginx
"Ready to Work"#在编译安装lnmp之前, first uninstall the existing RPM package.
The code is as follows
Copy Code
RPM-E httpdRPM-E MySQLRpm-e PHPYum-y Remove httpdyum-y Remove Mysql-server MySQLYum-y Remove PHPYum-y Remove
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.